package com.sample.user.service;

import com.sample.user.entity.User;
import com.sample.user.service.UserService;

/**
 * 本地存根
 * 
 * @author lifeng
 * @date 2020年8月6日 下午4:19:48
 */
public class UserServiceStub implements UserService {
	UserService proxy;

	public UserServiceStub(com.sample.user.service.UserService proxy) {
		this.proxy = proxy;
	}

	@Override
	public User get(Long id) {
		System.out.println("先调用本地存根 stub:get");
		return proxy.get(id);
	}

	@Override
	public void doTrans(String orderId) {
		System.out.println("先调用本地存根  stub: doTrans");
		proxy.doTrans(orderId);
	}
}
